#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      Kim
#
# Created:     27/11/2011
# Copyright:   (c) Kim 2011
# Licence:     <your licence>
#-------------------------------------------------------------------------------
#!/usr/bin/env python

stopwords = []

def readStopWords(stopwordFile):
    fp = open(stopwordFile, "r")
    for eachline in fp.readlines():
        stopwords.append(eachline.strip())
    fp.close()

def isStopWords(word):
    if len(stopwords) == 0:
        print "ERROR: StopWords not defined"
        return False
    else:
        return word in stopwords